package org.example.cicdi.service.impl.third.fieldcondition;

import lombok.Data;

import java.util.Objects;

@Data
public class FieldCondition {
    private String hasorNotColumn;
    private String hasorNotJpaManyToOne;
    private String hasorNotJoinColumn;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof FieldCondition)) return false;
        FieldCondition that = (FieldCondition) o;
        return Objects.equals(hasorNotColumn, that.hasorNotColumn) && Objects.equals(hasorNotJpaManyToOne, that.hasorNotJpaManyToOne) && Objects.equals(hasorNotJoinColumn, that.hasorNotJoinColumn);
    }

    @Override
    public int hashCode() {
        return Objects.hash(hasorNotColumn, hasorNotJpaManyToOne, hasorNotJoinColumn);
    }
}
